package wc

import java.io.{ObjectOutputStream, OutputStream}
import java.net.{ServerSocket, Socket}


object Driver {
  def main(args: Array[String]): Unit = {
    //链接服务器:客户端
    val client = new Socket("localhost", 9999)
    val out: OutputStream = client.getOutputStream
    val objectOut = new ObjectOutputStream(out)
    val task=new Task()
    objectOut.writeObject(task)
    out.flush()
    out.close()
    client.close()
  }

}
